home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / ronset25.zip / RONSET.MSG < prev    next >
Text File  |  1990-03-22  |  3KB  |  80 lines

  1. Date: 15 Mar 90 15:34:03
  2. From: Mike Arst
  3. To:   Bob Campbell
  4. Subj: RONSET's  IF()  function
  5.  
  6.  > I looked at RONSET and my first thought was; Wow what a powerful batch 
  7.  > utiity. Then I tried to think of something to use it for.  I can't think 
  8.  > of anything that I need RONSET for.
  9.  
  10. Overall, the point is: that I know of there has never been a SINGLE batch file 
  11. utility with this many functions built in. It is a WONDERFUL piece of 
  12. programming.
  13.  
  14. --- ConfMail V3.31
  15.  * Origin: Seattle Software Exchange / SeaSoftNet (206.637-2398) (1:343/8.9)
  16. SEEN-BY: 19/3 105/469 124/1002 1113 4115 5003 6120 130/12 24 343/8 
  17. SEEN-BY: 343/11 40 200 300 350/20 
  18. PATH: 1086/9 343/8 300 124/4115 
  19.  
  20.  
  21. ===============================================================================
  22.  
  23. Date: 22 Mar 90  21:25:03
  24. From: Ron Bemis
  25. To:   Mike Arst
  26. Subj: Re: Ronset question
  27.  
  28.  >>  Rem Place wakeup call on weekdays (dial voice line)
  29.  >>  RonSet X=level(or(eqs(date(k),Sat),eqs(date(k),Sun)))
  30.  >>  If Not Errorlevel 1 Call WakeUp
  31.  
  32.  MA> Could I talk you into explaining how OR() works? AND() and OR() and
  33.  MA> XOR() and that kinda stuff are still mysteries to me. Thanks.
  34.  
  35. These are bitwise functions.  0 is FALSE and 1 is TRUE.  The order of the 
  36. operands doesn't matter.
  37.  
  38. If you OR (sometimes called an "inclusive OR") two bits together, you get TRUE 
  39. (1) if either one of them is TRUE.  Otherwise you get FALSE (0).
  40.  
  41.    OR | 0  1       OR is typically used for setting bits.  If you want to
  42.     --+------      set the 3rd most significant bit, you'd OR with 4.
  43.     0 | 0  1            xxxxxxxx
  44.     1 | 1  1         OR 00000100
  45.                     -------------
  46.                         xxxxx1xx
  47.  
  48. If you AND two bits together, you get TRUE (1) if *both* bits are TRUE.  
  49. Otherwise you get FALSE (0).
  50.  
  51.   AND | 0  1       AND is typically used for masking bits.  If you only
  52.     --+------      want the 4th most significant bit, you'd AND with 8.
  53.     0 | 0  0            xxxxxxxx
  54.     1 | 0  1        AND 00001000
  55.                     -------------
  56.                         0000x000
  57.  
  58. If you XOR (exclusive OR) two bits together, you get TRUE (1) if the bits are 
  59. different.  Otherwise you get FALSE (0).
  60.  
  61.   XOR | 0  1            Example:     01010101
  62.     --+------                    XOR 11001100
  63.     0 | 0  1                    --------------
  64.     1 | 1  0                         10011001
  65.  
  66. If you NOT a bit, you get the opposite of what you started with.
  67.  
  68.   NOT | 0  1            Example:   NOT 11001010
  69.     --+------                       is 00110101
  70.       | 1  0
  71.  
  72. Ronset does all these functions with 16-bit unsigned numbers.  My examples 
  73. above only show 8 bits.
  74.  
  75.                     -Ron
  76.  
  77. --- Msg V4.1
  78.  * Origin: Nibbles & Bytes - Dallas, Texas - 214-231-3841 (1:124/1113)
  79. SEEN-BY: 124/1113
  80.